package weixinkeji.dev.dc.base.food.check;

import sys.wx.c.components.check.CheckService;
import sys.wx.c.components.check.bean.CheckData;

public class CheckFood {

    public CheckData doFood(boolean idcheck) {
        CheckData cd = CheckService.getCheckData();
        cd.put("food_id", CheckData.ID, idcheck)
                .put("series_id", CheckData.ID + "{1,26}", true)
                .put("unit_id", CheckData.ID + "{1,26}", true)
                .put("food_name", CheckData.TEXT_L + "{1,50}", true)
                .put("food_price", CheckData.NUMBER, false)
                .put("food_code", CheckData.TEXT_L + "{1,26}", true)
                .put("food_img", CheckData.TEXT_L + "{1,255}", false);
        return cd;
    }
}
